package com.mdb.open.trade.service.trade.handle.enums;

import com.mdb.bc.api.enums.ApiEnum;
import com.mdb.open.common.enums.trade.status.InwardRemitCreditStatusEnum;

public enum InwardRemittanceStatusEnum implements ApiEnum<String> {
	CREATED("1", "纪录已建立，落入"),
	PROCESSED("2", "确认"),
	FIRST_APPROVED("3", "第一次复核通过"),
	PAID("4", "主管复核通过,记录已解付"){
		@Override
		public InwardRemitCreditStatusEnum getInwardRemitCreditStatusEnum() {
			return InwardRemitCreditStatusEnum.ALREADY_ACCOUNTED;
		}
	},
	STP("5", "自动入账成功"){
		@Override
		public InwardRemitCreditStatusEnum getInwardRemitCreditStatusEnum() {
			return InwardRemitCreditStatusEnum.ALREADY_ACCOUNTED;
		}
	},
	VOIDED("8","纪录已注销"){
		@Override
		public InwardRemitCreditStatusEnum getInwardRemitCreditStatusEnum() {
			return InwardRemitCreditStatusEnum.UN_ACCOUNTED;
		}
	},
	REVERSED("8","已冲销"){
		@Override
		public InwardRemitCreditStatusEnum getInwardRemitCreditStatusEnum() {
			return InwardRemitCreditStatusEnum.UN_ACCOUNTED;
		}
	},
	REJECTED("8","主管复核退回"){
		@Override
		public InwardRemitCreditStatusEnum getInwardRemitCreditStatusEnum() {
			return InwardRemitCreditStatusEnum.UN_ACCOUNTED;
		}
	},
	;


	InwardRemittanceStatusEnum(String value, String text) {
		this.value = value;
		this.text = text;
	}

	private InwardRemitCreditStatusEnum inwardRemitCreditStatusEnum = null;

	public InwardRemitCreditStatusEnum getInwardRemitCreditStatusEnum() {
		return inwardRemitCreditStatusEnum;
	}

	private String value;

	private String text;

	@Override
	public String getValue() {
		return value;
	}

	@Override
	public String getText() {
		return text;
	}
}
